 
package com.nf.health.app.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.nf.health.app.R;

public class CountingFragment extends Fragment {


    TextView text1;

    String text;
    String titleId;

    String a;

    static CountingFragment newInstance(int num) {
        CountingFragment f = new CountingFragment();

        return f;
    }
 
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

   
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.hello_world, container, false);
        text1 = (TextView) v.findViewById(R.id.text);
        Bundle args = getArguments();
        text = args != null ? args.getString("text") : "";
        titleId = args != null ? args.getString("id") : "";


        text1.setText(text);

        return v;
    }
}
